package com.eliza.spring.cloud.library.mapper

import com.eliza.spring.cloud.library.pojo.User
import org.apache.ibatis.annotations.Mapper
import org.apache.ibatis.annotations.Param
import org.apache.ibatis.annotations.Select

@Mapper
interface UserMapper {
    @Select("SELECT * FROM Spring.CloudUser where id = #{id}")
    fun findById(@Param("id") id: Long): User?

    @Select("SELECT * FROM Spring.CloudUser")
    fun getUserAll(): List<User>
}